/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.market.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.market.entity.EventLotteryDetail;
import com.kaaction.modules.market.dao.EventLotteryDetailDao;

/**
 * 获奖结果Service
 * @author zengbiao
 * @version 2017-04-22
 */
@Service
@Transactional(readOnly = true)
public class EventLotteryDetailService extends CrudService<EventLotteryDetailDao, EventLotteryDetail> {

	public EventLotteryDetail get(String id) {
		return super.get(id);
	}
	
	public EventLotteryDetail getByIdAndToken(String eventId,String token) {
		return super.dao.getByIdAndToken(eventId,token);
	}
	
	public List<EventLotteryDetail> findList(EventLotteryDetail eventLotteryDetail) {
		return super.findList(eventLotteryDetail);
	}
	
	public Page<EventLotteryDetail> findPage(Page<EventLotteryDetail> page, EventLotteryDetail eventLotteryDetail) {
		return super.findPage(page, eventLotteryDetail);
	}
	
	@Transactional(readOnly = false)
	public void save(EventLotteryDetail eventLotteryDetail) {
		super.save(eventLotteryDetail);
	}
	
	@Transactional(readOnly = false)
	public void delete(EventLotteryDetail eventLotteryDetail) {
		super.delete(eventLotteryDetail);
	}
	
}